<!DOCTYPE html>
<head>
    <meta charset="UTF-8">
</head>
<body>
    <div id="app">
        <img :src="imgArray[index]" alt="">
        <a href="#" @click="prev" v-show="index!=0">
            <img src="" alt="">
        </a>
        <a href="#" @click="prev" v-show="index<imgArray.length">
            <img src="" alt="">
        </a>
    </div>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
    <script src="index.js"></script>
</body>